﻿<%@ Page Language="C#" MasterPageFile="~/UI/Main/Main.Master" AutoEventWireup="true" CodeBehind="MyToDos.aspx.cs" Inherits="OrganizedIN.UI.ToDo.MyToDos" %>
<%@ Register Assembly="AjaxControlToolkit, Version=3.5.40412.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e"
    Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<link href="../../App_Themes/Default/Default.css" rel="stylesheet" type="text/css" />

<div id="middle_tab">
  	<div id="middle_tab_title" align="center">My ToDos</div>
	<div class="middle_tab_content">
<br />
		<h4>You can Add, Search, Prioritize by Drag-and-Drop, Redate (Add to a future Date), 
            Delete, Archive, Mark as Completed, and Share with your Group by clicking on the 
            below icons:</h4><br />

	</div>

	<div id="icon_link_wrapper" align="center">
    
		<div id="icon_primary_todos" align="center"><a href="Add_New_ToDos.aspx" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Add New','','../../images/add_02.jpg',1)"><img src="../../images/add_01.jpg" alt="Add New" name="Search" width="75" height="75" border="0" id="Add New" /></a></div>
		
				
		<div id="icon_secondary" align="center"><a href="search_todos.aspx" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Search','','../../images/search_02.jpg',1)"><img src="../../images/search_01.jpg" alt="Search" name="Search" width="75" height="75" border="0" id="Search" /></a></div>
				
        <div id="icon_secondary" align="center"><a href="priortize_todos.aspx" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Priortize','','../../images/priortize_02.jpg',1)"><img src="../../images/priortize_01.jpg" alt="Priortize" name="Priortize" width="75" height="75" border="0" id="priortize" /></a></div>
		
		<div id="icon_secondary" align="center"><a href="redate_todos.aspx" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Re-Date','','../../images/redate_02.jpg',1)"><img src="../../images/redate_01.jpg" alt="Re-Date" name="Re-Date" width="75" height="75" border="0" id="Re-Date" /></a></div>
        
       <div id="icon_secondary" align="center"><a href="archive_todos.aspx" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Archive','','../../images/archive_02.jpg',1)"><img src="../../images/archive_01.jpg" alt="Archive" name="Archive" width="75" height="75" border="0" id="Archive" /></a></div>	
		
        
       <div id="icon_secondary" align="center"><a href="mark_todos.aspx" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Mark as Completed','','../../images/mark_02.jpg',1)"><img src="../../images/mark_01.jpg" alt="Mark as Completed" name="Mark as Completed" width="75" height="75" border="0" id="Mark as Completed" /></a></div>
        
        <div id="icon_secondary" align="center"><a href="share_with_group_todos.aspx" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Share with group','','../../images/share_02.jpg',1)"><img src="../../images/share_01.jpg" alt="Share with group" name="Share with group" width="75" height="75" border="0" id="Share with group" /></a></div>
           
        
	</div><br /><br />
<div class="documents_table">  

	<table width="100%" border="0" cellspacing="1" cellpadding="5" align="center">
      <tr>
        <%--<td width="7%" align="center">&nbsp;</td>--%>
        <td width="30%"><span class="middle_text1"><strong>Search by Date:</strong></span><br />
            <asp:TextBox ID="txtsrchbydate" runat="server"></asp:TextBox>
            <asp:ImageButton ID="img1" runat="server" ImageUrl="~/images/organizer_ico.gif"/>
            <cc1:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txtsrchbydate" PopupButtonID="img1">
            </cc1:CalendarExtender>
        </td>        
        <td colspan="3" align="left" style="color: #FF0000">
            <asp:Button ID="btnSearch" runat="server" Text="Search" 
                onclick="btnSearch_Click" />            
        </td>
      </tr>
      <tr bgcolor="#d8e1f3">
        <td class="middle_text1">&nbsp;</td>
        <td colspan="3" align="left"><h4><strong><asp:Label ID="lblTodayDate" runat="server" Text=""></asp:Label> 
            (Today)</strong> ▪ <a href="#"><strong>ReDate</strong></a></h4></td>
      </tr>
      <tr bgcolor="#d8e1f3">
        <td class="middle_text1">&nbsp;</td>
        <td colspan="3" align="left" style="color: #FF0000">
            <h4><strong><asp:Label ID="lblErrMsg" runat="server" Text=""></asp:Label></strong></h4>            
        </td>
      </tr>
    </table>
    <table width="100%" border="0" cellspacing="1" cellpadding="5" align="center">
        <tr bgcolor="#d8e1f3">
            <td align="left" class="middle_text3">
                <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                    <ContentTemplate>
                        <asp:GridView ID="gvTodoList" runat="server" AutoGenerateColumns="False" CellPadding="4"
                                DataKeyNames="Todo_ID" ForeColor="#333333" GridLines="None"  
                            ShowFooter="True" Width="100%" AllowPaging="True" 
                            onselectedindexchanging="gvTodoList_SelectedIndexChanging" >
                                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                <Columns>
                                    <asp:BoundField DataField="Todo_ID" HeaderText="ID" InsertVisible="False" ReadOnly="True"
                                        SortExpression="ID">
                                        <HeaderStyle HorizontalAlign="Left" />
                                    </asp:BoundField>
                                    
                                    <asp:BoundField DataField="Todo_Summary" HeaderText="Summary" SortExpression="Category" >
                                        <HeaderStyle HorizontalAlign="Left" />
                                    </asp:BoundField>
                                    
                                    <asp:BoundField DataField="Todo_Description" HeaderText="Description" SortExpression="Category" >
                                        <HeaderStyle HorizontalAlign="Left" />
                                    </asp:BoundField>                                    
                                    
                                    <asp:TemplateField ShowHeader="True" HeaderText = "Action" >
                                        <ItemTemplate>   
                                            
                                            <asp:LinkButton ID="lbtnSummary" runat="server" OnClick="lbtnSummary_Click" CausesValidation="false" Text="Summary">
                                            </asp:LinkButton>&nbsp;|&nbsp;
                                            <asp:LinkButton ID="lbtnDownload" runat="server" CausesValidation="false" Text="Download">
                                            </asp:LinkButton>&nbsp;|&nbsp; 
                                            <asp:LinkButton ID="lbtnReDate" runat="server" OnClick="lbtnReDate_Click" CausesValidation="false" Text="Re-Date">
                                            </asp:LinkButton>&nbsp;|&nbsp;                                                
                                            <asp:LinkButton ID="lbtnDemo" runat="server" OnClick="lbtnDemo_Click" CausesValidation="false" Text="Re-Name">
                                            </asp:LinkButton>&nbsp;|&nbsp; 
                                            <asp:LinkButton ID="lbtnArchive" runat="server" OnClick="lbtnArchive_Click" CausesValidation="false" Text="Archive">
                                            </asp:LinkButton>&nbsp;|&nbsp;                                                          
                                            <br />
                                            <asp:LinkButton ID="lbtnShared" runat="server" CausesValidation="false" Text="Share(d)">
                                            </asp:LinkButton>&nbsp;|&nbsp;
                                            <asp:LinkButton ID="lbtnMark" runat="server" OnClick="lbtnMark_Click" CausesValidation="false" Text="Mark as Completed">
                                            </asp:LinkButton>&nbsp;|&nbsp;                                                           
                                            <asp:LinkButton ID="lbtnDelete" runat="server" OnClick="lbtnDelete_Click" CausesValidation="false" Text="Delete">
                                            </asp:LinkButton>&nbsp;|&nbsp;
                                            
                                            
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Left" />
                                    </asp:TemplateField>                                    
                                </Columns>
                                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                <EditRowStyle BackColor="#999999" />
                                <AlternatingRowStyle BackColor="White" ForeColor="#284775" 
                                    VerticalAlign="Middle" />
                        </asp:GridView>
                            
                        <%-- Start : Modal PopUp for Rename--%>
                        <asp:Button ID="ShowPopUp" runat="server" Style="display: none" />                        
                        <cc1:ModalPopupExtender ID="mpePerson" runat="server" TargetControlID="ShowPopUp" PopupControlID="pnlPerson" CancelControlID="btnCancelPerson" BackgroundCssClass="modalBackground" PopupDragHandleControlID="PersonCaption" Drag="true">
			            </cc1:ModalPopupExtender>                        
                        <asp:Panel ID="pnlPerson" runat="server" CssClass="modalBox" Style="display: none;" Width="500px" class="popupConfirmation">
                            <div class="popup_Container">
                                <div class="popup_Titlebar" id="Div1">
                                    <div class="TitlebarLeft">
                                        Todo ReName
                                    </div>                                    
                                </div>
                                <div class="popup_Body">
                                    <asp:Label ID="lblID_ReName" runat="server" Style="display: none"></asp:Label>
                                    <table>
                                        <tr>
                                            <td>
                                                Re - Name:
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:TextBox ID="txtRename" runat="server" MaxLength="64" Width="250"></asp:TextBox>
                                            </td>
                                        </tr>
                                    </table>                                    
                                </div>		           
				                <div class="popup_Buttons">
					                <asp:Button ID="btnSavePerson" runat="server" Text="Save" OnClick="btnSavePerson_Click" CausesValidation="true"/>
					                <asp:Button ID="btnCancelPerson" runat="server" CausesValidation="false" Text="Cancel"/>					             				                
				                </div>
				             </div>   
			            </asp:Panel>  
			            <%-- End : Modal PopUp for Rename--%>
			            
			            <%-- Start : Modal PopUp for Summary--%>
                        <asp:Button ID="ShowPopup_Summary" runat="server" Style="display: none" />                        
                        <cc1:ModalPopupExtender ID="mpSummary" runat="server" TargetControlID="ShowPopup_Summary" PopupControlID="pnlSummary" CancelControlID="btnCancelPerson" BackgroundCssClass="modalBackground" PopupDragHandleControlID="PersonCaption" Drag="true">
			            </cc1:ModalPopupExtender>                        
                        <asp:Panel ID="pnlSummary" runat="server" CssClass="modalBox" Style="display: none;" Width="500px" class="popupConfirmation">
                            <div class="popup_Container">
                                <div class="popup_Titlebar" id="Div2">
                                    <div class="TitlebarLeft">
                                        Todo Summary
                                    </div>                                    
                                </div>
                                <div class="popup_Body">
                                    <table>
                                        <tr>
                                            <td>
                                                Summary:
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="lblSummary" runat="server"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                Description:
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="lblDesc" runat="server"></asp:Label>
                                            </td>
                                        </tr>
                                    </table>                                    
                                </div>		           
				                <div class="popup_Buttons">
					                <asp:Button ID="btnCancel_Summary" runat="server" CausesValidation="false" Text="Cancel"/>
				                </div>
				             </div>   
			            </asp:Panel>  
			            <%-- End : Modal PopUp for Summary--%> 
			            
			            <%-- Start : Modal PopUp for ReDate--%>
			            <asp:Button ID="ShowPopup_ReDate" runat="server" Style="display: none" />                                            
                        <cc1:ModalPopupExtender ID="mpReDate" runat="server" TargetControlID="ShowPopup_ReDate" PopupControlID="pnlReDate" CancelControlID="btnCancelPerson" BackgroundCssClass="modalBackground" PopupDragHandleControlID="PersonCaption" Drag="true">
			            </cc1:ModalPopupExtender> 
                        <asp:Panel ID="pnlReDate" runat="server" CssClass="modalBox" Style="display: none;" Width="500px" class="popupConfirmation">
                            <div class="popup_Container">
                                <div class="popup_Titlebar" id="Div3">
                                    <div class="TitlebarLeft">
                                        Todo ReDate
                                    </div>                                    
                                </div>
                                <div class="popup_Body">
                                    <asp:Label ID="lblID_ReDate" runat="server" Style="display: none"></asp:Label>
                                    <table>
                                        <tr>
                                            <td>
                                                Re-Date:
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:TextBox ID="txtReDate" runat="server"></asp:TextBox>
                                                <cc1:CalendarExtender ID="TextBoxDate_CalendarExtender" runat="server" 
                                                    Enabled="True" TargetControlID="txtReDate" PopupPosition="TopLeft">
                                                </cc1:CalendarExtender>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                                ErrorMessage="*" ControlToValidate="txtReDate"></asp:RequiredFieldValidator>
                                            </td>
                                        </tr>                                        
                                    </table>                                    
                                </div>		           
				                <div class="popup_Buttons">
					                <asp:Button ID="btnSave_ReDate" runat="server" Text="Save" OnClick="btnSave_ReDate_Click" CausesValidation="true"/>
					                <asp:Button ID="Button1" runat="server" CausesValidation="false" Text="Cancel"/>
				                </div>
				             </div>   
			            </asp:Panel>  
			            <%-- End : Modal PopUp for ReDate--%> 
			            
			            <%-- Start : Modal PopUp for Archive--%>                                           
                        <asp:Button ID="ShowPopup_Archive" runat="server" Style="display: none" /> 
                        <cc1:ModalPopupExtender ID="mpArchive" runat="server" TargetControlID="ShowPopup_Archive" PopupControlID="pnlArchive" CancelControlID="btnCancelPerson" BackgroundCssClass="modalBackground" PopupDragHandleControlID="PersonCaption" Drag="true">
			            </cc1:ModalPopupExtender>   
                        <asp:Panel ID="pnlArchive" runat="server" CssClass="modalBox" Style="display: none;" Width="500px" class="popupConfirmation">
                            <div class="popup_Container">
                                <div class="popup_Titlebar" id="Div4">
                                    <div class="TitlebarLeft">
                                        Todo Archive
                                    </div>                                    
                                </div>
                                <div class="popup_Body">
                                    <asp:Label ID="lblID_Archive" runat="server" Style="display: none"></asp:Label>
                                    <table>
                                        <tr>
                                            <td>
                                                Do you realy want to archive this ToDo ?
                                            </td>
                                        </tr>                                                                     
                                    </table>                                    
                                </div>		           
				                <div class="popup_Buttons">
					                <asp:Button ID="btnSave_Archive" runat="server" Text="Save" OnClick="btnSave_Archive_Click" CausesValidation="true"/>
					                <asp:Button ID="Button2" runat="server" CausesValidation="false" Text="Cancel"/>
				                </div>
				             </div>   
			            </asp:Panel>  
			            <%-- End : Modal PopUp for Archive--%>
			            
			            <%-- Start : Modal PopUp for Mark as Completed--%>  
			            <asp:Button ID="ShowPopup_Mark" runat="server" Style="display: none" />
			            <cc1:ModalPopupExtender ID="mpMark" runat="server" TargetControlID="ShowPopup_Mark" PopupControlID="pnlMark" CancelControlID="btnCancelPerson" BackgroundCssClass="modalBackground" PopupDragHandleControlID="PersonCaption" Drag="true">
			            </cc1:ModalPopupExtender>                                          
                        <asp:Panel ID="pnlMark" runat="server" CssClass="modalBox" Style="display: none;" Width="500px" class="popupConfirmation">
                            <div class="popup_Container">
                                <div class="popup_Titlebar" id="Div5">
                                    <div class="TitlebarLeft">
                                        Todo Mark as Completed
                                    </div>                                    
                                </div>
                                <div class="popup_Body">
                                <asp:Label ID="lblID_Mark" runat="server" Style="display: none"></asp:Label>
                                    <table>
                                        <tr>
                                            <td>
                                                Do you realy want to Mark as Completed ?
                                            </td>
                                        </tr>                                                                     
                                    </table>                                    
                                </div>		           
				                <div class="popup_Buttons">
					                <asp:Button ID="btnSave_Mark" runat="server" Text="Save" OnClick="btnSave_Mark_Click" CausesValidation="true"/>
					                <asp:Button ID="Button3" runat="server" CausesValidation="false" Text="Cancel"/>
				                </div>
				             </div>   
			            </asp:Panel>  
			            <%-- End : Modal PopUp for Mark as Completed--%>
			            
			            <%-- Start : Modal PopUp for Delete--%>
			            <asp:Button ID="ShowPopup_Delete" runat="server" Style="display: none" />  
			            <cc1:ModalPopupExtender ID="mpDelete" runat="server" TargetControlID="ShowPopup_Delete" PopupControlID="pnlDelete" CancelControlID="btnCancelPerson" BackgroundCssClass="modalBackground" PopupDragHandleControlID="PersonCaption" Drag="true">
			            </cc1:ModalPopupExtender>                                            
                        <asp:Panel ID="pnlDelete" runat="server" CssClass="modalBox" Style="display: none;" Width="500px" class="popupConfirmation">
                            <div class="popup_Container">
                                <div class="popup_Titlebar" id="Div6">
                                    <div class="TitlebarLeft">
                                        Todo Delete
                                    </div>                                    
                                </div>
                                <div class="popup_Body">
                                <asp:Label ID="lblID_Delete" runat="server" Style="display: none"></asp:Label>
                                    <table>
                                        <tr>
                                            <td>
                                                Do you realy want to delete this ToDo ?
                                            </td>
                                        </tr>                                                                     
                                    </table>                                    
                                </div>		           
				                <div class="popup_Buttons">
					                <asp:Button ID="btnSave_Delete" runat="server" Text="Save" OnClick="btnSave_Delete_Click" CausesValidation="true"/>
					                <asp:Button ID="Button4" runat="server" CausesValidation="false" Text="Cancel"/>
				                </div>
				             </div>   
			            </asp:Panel> 
			            <%-- End : Modal PopUp for Delete--%> 
			                    
                    </ContentTemplate>
                </asp:UpdatePanel>                
                        
            </td>
        </tr>
    </table><br /><br />
       
</div>     
	<br />
    </div>
</asp:Content>

 
 
 
 
 
 
 
 
 